package com.ibeeking.found.common.config.feign;

import com.ibeeking.found.common.config.feign.fallback.InventoryJobFeignClientFallbackFactory;
import com.ibeeking.found.common.entity.TimeTaskJobParam;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author ibeeking
 */
@FeignClient(name = "mall-inventory-b-server", contextId = "commonInventoryJobFeignClient", path = "/b", fallbackFactory = InventoryJobFeignClientFallbackFactory.class, decode404 = true)
public interface InventoryJobFeignClient {

    @PostMapping(value = "/job/feign/v1/createJobInfoForInventoryUsageSurvey")
    ResponseResult<Boolean>  createJobInfoForInventorySurvey(@RequestBody TimeTaskJobParam param);

    @PostMapping(value = "/job/feign/v1/delJobInfoForInventoryUsageSurvey")
    ResponseResult<Boolean>  delJobInfoForInventoryUsageSurvey(@RequestBody TimeTaskJobParam param);
}
